<ul>
<?php 
$url = $this->Html->url(array('controller'=> 'Abilities', 'action'=> 'admin'));
foreach($lines as $line) :?>
    <li>
        <a target="_mh" href='<?php echo $url.'/'.$line['id'].'/0/'.$userId;?>'>
            <?php echo mb_strtoupper($line['name']);?>
        </a>
    </li>
<?php endforeach; ?>
</ul>
